package com.cenntro.oss.model.vo;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.cenntro.oss.valid.Valid;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 车型表
 * </p>
 *
 * @author 
 * @since 2018-09-26
 */
@Data
//@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="DevCar对象", description="车型表")
public class DevCarVO  implements Serializable{

    private static final long serialVersionUId = 1L;
    
    @NotNull(message="id不能是空", groups=Valid.update.class)
    private Integer id;

    @ApiModelProperty(value = "车型图片")
    private String pic;

    @ApiModelProperty(value = "车型名称")
    @NotBlank(message="型号不能是空")
    private String title;
    @NotBlank(message = "续航里程不能是空")
    @ApiModelProperty(value = "总续航里程（公里）")
    private Integer life;

    @ApiModelProperty(value = "车型编码")
    private String code;

    @ApiModelProperty(value = "整备质量（KG）")
    private Integer weight;

    @ApiModelProperty(value = "电池容量 单位kWh")
    private Double battery;

    @ApiModelProperty(value = "电池类型")
    private String batteryType;

    @ApiModelProperty(value = "电机功率KW")
    private Integer power;

    @ApiModelProperty(value = "最高速度km/h")
    private Integer highSpeed;

    @ApiModelProperty(value = "状态0=正常，-1=下架")
    private Integer status;

    @ApiModelProperty(value = "车身长度：单位米")
    private Double length;

    @ApiModelProperty(value = "车身高度：单位米")
    private Double height;

    @ApiModelProperty(value = "车身宽度：单位米")
    private Double width;

    @ApiModelProperty(value = "装载长度：单位米")
    private Double loadLength;

    @ApiModelProperty(value = "装载高度：单位米")
    private Double loadHeight;

    @ApiModelProperty(value = "装载宽度：单位米")
    private Double loadWidth;

    @ApiModelProperty(value = "载重KG")
    private Integer loadWeight;

    @ApiModelProperty(value = "方位")
    private Double volume;

    @ApiModelProperty(value = "车型  箱式")
    private String models;

    @ApiModelProperty(value = "核定载人")
    private Integer peoples;

    @ApiModelProperty(value = "充满电需时长：整数，单位分种")
    @NotNull(message = "充满电需时长不能是空")
    private Integer chargeLong;

    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    private Date lastUpTime;

    private String lastUpSooId;



}
